import axios from "axios";

const request = axios.create({
  baseURL: "https://fc-mp-db9fd8e4-786b-4557-aa8b-ff234bec6737.next.bspapp.com",
});

request.interceptors.request.use((config) => {
  const clientInfo = {
    uniPlatform: "web",
    appId: "__UNI__D2333F0",
    deviceId: "12345678910",
  };
  config.data = {
    clientInfo,
    ...config.data,
  };
  return config;
});

request.interceptors.response.use((response) => {
  return response;
});

export default request;
